package com.kfm.base.oop2;

public class Demo02 {

    public static void main(String[] args) {
        GirlFriend gf = new GirlFriend();
        gf.name = "小倩";
//        gf.age = -1000;

        // 设置年龄的方法
        gf.setAge(-500);
        System.out.println(gf.show());


        int age = gf.getAge();
        gf.setGender('女');
        System.out.println(age);

    }
}
